import { Component, Input, OnInit } from '@angular/core';
import { ActivatedRoute } from '@angular/router';

@Component({
  selector: 'app-test5',
  templateUrl: './test5.component.html',
  styleUrls: ['./test5.component.less'],
})
export class Test5Component implements OnInit {
  id: string;

  constructor(private routerInfo: ActivatedRoute) {
    this.id = this.routerInfo.snapshot.params['id'];
  }

  ngOnInit(): void {
    console.log('Test5Component init');
  }
}
